<?php
namespace app\admin\model;

use think\Model;
use think\Db;

class UserModel extends Model
{
    public function index(){
        $all = Db::name('users')->select();
        return $all;
    }

}